<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>申请详情</title>
    <link rel="stylesheet" type="text/css" href="_css/css.css"/>
    <link rel="stylesheet" type="text/css" href="_css/index.css"/>
    <script src="_js/rem.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="head">
    <div class="headpd">
        预约详情
    </div>
</div>

<hr style="height: .6rem;border: none;margin: 0;"/>
<div class="project-money clearfix">
    <div class="clearfix w100">
        <span class="fl w25">预约服务</span>
        <span class="red fl"><?php echo $rows['service'] ?></span>
    </div>
  
</div>
<div class="project-money clearfix">
    <div class="clearfix w100">
        <span class="fl w25">预约人姓名</span>
        <span class="red fl"><?php echo $rows['username'] ?></span>
    </div>
  
</div>
<div class="project-money clearfix">
    
    <div class="clearfix w100">
        <span class="fl w25">意向车型</span>
        <span class="red fl"><?php echo $rows['yixiang'] ?></span>
    </div>
</div>
<div class="project-money clearfix">
    <div class="clearfix w100">
        <span class="fl w25">联系电话</span>
        <span class="red fl"><?php echo $rows['phone'] ?></span>
    </div>
</div>
<div class="project-money clearfix">
    <div class="clearfix w100">
        <span class="fl w25">预约时间</span>
        <span class="red fl"><?php echo $rows['time'] ?></span>
    </div>
</div>
<div class="project-money clearfix">
    <div class="clearfix w100">
        <span class="fl w25">地区</span>
        <span class="red fl"><?php echo $rows['city'] ?></span>
    </div>
   
</div>
<div class="project-money clearfix">
    <div class="clearfix w100">
        <span class="fl w25">身份证后四位</span>
        <span class="red fl"><?php echo $rows['cardid'] ?></span>
    </div>
</div>
<div class="project-money clearfix">
    <div class="clearfix w100">
        <span class="fl w25">申请时间</span>
        <span class="red fl"><?php echo date('Y-m-d',strtotime($rows['addtime'])) ?></span>
    </div>
    
</div>
<div class="proindex">
    <h1>购车需求</h1>
    <p>
        <?php echo $rows['need'] ?>
    </p>
</div>
<div class="project-money clearfix">

    <div class="clearfix w100">
        <span class="fl w25">状态</span>
        <span class="red fl"><?php if($rows['status']==1){echo '已处理，处理人：'.$rows['offer'];}else{echo '未处理';} ?></span>
    </div>
</div>
<div class="proindex">
    <h1>跟进记录：</h1>
    <table>
        <tbody>
        <tr>
            <td>跟进人</td>
            <td>跟进世间</td>
            <td>跟进记录</td>
        </tr>
        <?php foreach($histo as $v){ ?>
            <tr>
                <td><?php echo $v['offer'] ?></td>
                <td><?php echo date('Y-m-d',strtotime($v['offerdate'])) ?></td>
                <td><?php echo $v['content'] ?></td>
            </tr>
        <?php } ?>
        </tbody>
    </table>
</div>
<!--footer-->
<hr style="height: 1.14rem;border: none;margin: 0;"/>
<div class="footercc" style="height:.6rem;">
    <?php if($rows['status'] !=1){ ?>
        <form action="<?php echo url('order') ?>" method="post" class="w100">
            <div class="w100">
				<input type="text" name="offer" placeholder="请输入负责人姓名">
				<input type="hidden" name="id" value="<?php echo $rows['id'] ?>">
				<div class="btnone fr wb50"><button>确认</button></div>		
			</div>
		</form>
    <?php }else{ ?>
        <div style="margin:0 auto;line-height:.6rem;"><a href="<?php echo url('history?id='.$rows['id']) ?>" class="shopbtncc fl">添加跟进记录</a></div>
    <?php }?>
</div>
</body>
</html>


